Skip to content

Add StopProcessing exception for graceful early exit#79

Merged
koenvo merged 1 commit intomainfrom
feature/stop-processing
Apr 22, 2026
Merged

Add StopProcessing exception for graceful early exit#79
koenvo merged 1 commit intomainfrom
feature/stop-processing

Conversation

@koenvo
Copy link
Copy Markdown
Contributor

@koenvo koenvo commented Apr 22, 2026

Sources or loaders raise StopProcessing to signal that processing should stop (e.g. API quota exhausted). When caught in the ingestion job:

  • IngestionJobSummary is saved with partial results
  • The exception propagates to the CLI with exit_code=2
  • Datasets processed before the signal are preserved
  • Distinct from exit 0 (success) and exit 1 (error)

Sources or loaders raise StopProcessing to signal that processing should
stop (e.g. API quota exhausted). When caught in the ingestion job:
- IngestionJobSummary is saved with partial results
- The exception propagates to the CLI with exit_code=2
- Datasets processed before the signal are preserved
- Distinct from exit 0 (success) and exit 1 (error)
@koenvo koenvo merged commit d3db1d6 into main Apr 22, 2026
13 checks passed
@koenvo koenvo deleted the feature/stop-processing branch April 22, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant